<!--:var root="/LongkongWeb"; -->
<!--:var user = session["user"];-->

<header id="nav-bar" class="container">
    <div class="row">
        <div class="span12">
            <div id="header-container">
                <a id="backbutton" class="win-backbutton" href="${root}/"></a>
                <h5>青岛龙港船舶工程公司</h5>
                <div class="dropdown">
                    <a class="header-dropdown dropdown-toggle accent-color" data-toggle="dropdown" href="#" >
                        信息办公系统
                        <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="${root}/">主页</a></li>
                        <li class="divider"></li>
                        <li><a href="${root}/impa/">IMPA管理</a></li>
                    </ul>
                </div>
            </div>
            <div id="top-info" class="pull-right">
                <a id="logged-user" href="#" class="win-command pull-right">
                    <span class="win-commandicon win-commandring icon-user"></span>
                </a>
                <!--: if (user != null) { --> 
                <div class="pull-left">
                <h3>欢迎：${user.name!}</h3>
                
                <div class="dropdown pull-right">
                    <a class="header-dropdown dropdown-toggle accent-color win-command" data-toggle="dropdown" href="#" >
                        ${user.code!}<b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="${root}/user/profile.do">管理我的账号</a></li>
                        <li class="divider"></li>
                        <li><a href="${root}/user/logout.do">退出</a></li>
                    </ul>
                </div>
                </div>
                <!--:} else {-->
                <div class="pull-left">
                    <a href="${root}/user/login.do"><h3>登录</h3></a>
                    <a href="${root}/user/signup.do"><h4>注册账户</h4></a>
                </div>

                <!--:}-->
            </div>
        </div>
    </div>
</header>
